from django.shortcuts import render
from django.http import HttpResponse
from common import models
#移动端首页
def index(request):
	#获取菜品信息
	list = models.Product.objects.all()
	context = {"productlist":list}
	return render(request,'mobile/index.html',context)

def order(request):
	return render(request,'mobile/order.html')

def cart(request):
	return render(request,'mobile/cart.html')

def member(request):
	return render(request,'mobile/member.html')

def register(request):
	return render(request,'mobile/register.html')

def regsuc(request):
	return render(request,'mobile/regsuc.html')

def shop(request):
	#获取店铺信息
	list = models.Shop.objects.all()
	context = {"shoplist":list}
	return render(request,'mobile/shop.html',context)
